package edu.njust.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReservationItem {
    private Long id;
    private Long reservation_id;
    private String reservation_name;
    private String computer_room_id;
    private String klass_id;
    private Integer state;
    private Integer is_usage;
    private Integer selected;
    private Integer shared;
    private Integer type;
    public ReservationItem(Long reservation_id, String computer_room_id, String reservation_name, String klass_id, Integer usage, Integer shared,Integer type){
        this.reservation_id = reservation_id;
        this.computer_room_id = computer_room_id;
        this.reservation_name = reservation_name;
        this.klass_id = klass_id;
        this.state = 1;
        this.is_usage = usage;
        this.selected = 0;
        this.shared = shared;
        this.type = type;
    }
    public void selectReservationItem(){
        selected++;
    }
    public void quitReservationItem(){
        selected--;
    }

}
